package com.leapp.sk.ui.adapter

import android.content.Context
import com.example.mvp.adapter.BaseLibAdapter
import com.example.mvp.binder.BaseDataBinder
import com.leapp.sk.bean.ClassNotifyEntiry
import com.leapp.sk.bean.TextImageEntity
import com.leapp.sk.binder.BaseBinder
import com.leapp.sk.viewdelegate.adapter.notify.CommonFunctionAdapterDelegate

/**
 * 常用功能适配器
 * @author  chaohaipeng  on 2018/8/2.
 */
class CommonFunctionAdapter  (context: Context, mlist: List<TextImageEntity>) : BaseLibAdapter<CommonFunctionAdapterDelegate, TextImageEntity>(context, mlist){
    /**
     * 数据
     */
    val mList = mlist
    override fun bindEvenListener(viewDelegate: CommonFunctionAdapterDelegate?, position: Int) {
    }
    override fun notifyView(viewDelegate: CommonFunctionAdapterDelegate?, position: Int) {
        viewDelegate?.initData(mList.get(position))
    }

    override fun getDelegateClass(): Class<CommonFunctionAdapterDelegate> {
        return CommonFunctionAdapterDelegate::class.java
    }

    override fun getDataBinder(): BaseDataBinder<*, *> {
        return BaseBinder()
    }


}